package com.example.demo.model.user.user.controler;


import com.example.demo.model.user.user.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author STAHYW
 * @since 2021-10-20
 */
@RestController
@RequestMapping("/user/userAddress")
public class UserAddressResource {
    @Autowired
    UserAddressService userAddressService;

    @GetMapping("/getUseraddress")
    public ModelAndView getUseraddress(HttpServletRequest request){
        return  userAddressService.getUseraddress(request);
    }
}

